﻿<Window x:Class="ThreadingPrimeNumberSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="140" Width="200">
    <Window.Resources>
        <Style TargetType="{x:Type Button}">
            <Setter Property="Margin"
                    Value="5" />
        </Style>
    </Window.Resources>
    <StackPanel>
        <Button Click="ShowPrimeCodeBehind_Click"
                ToolTip="Will display a window that contains the MSDN, code behind approach to threading which requires maunal dispatching.">Show Prime with Code Behind</Button>
        <Button Click="ShowPrimeMVVM_Click"
                ToolTip="Will display a window that contains MVVM approach that does not require manual dispatching.">Show Prime with MVVM</Button>
        <Button Click="GCCollect_Click" 
                ToolTip="To confirm that there are no memory leaks run this program in release mode and then use this button after closing an MVVM window.">GC Collect</Button>
    </StackPanel>
</Window>
